<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/common/common.jsp"%>
<%@ include file="/WEB-INF/common/taglib.jsp"%>
<!DOCTYPE html>
<html lang="en">
<script type="text/javascript">
$(function(){
	$('.form_datetime').datetimepicker({
		language:'zh-CN',
		format: "yyyy-mm-dd hh:ii:ss",
		weekStart: 1,
        autoclose: true,
        todayBtn: true,
		todayHighlight: 1,
		startView: 'month',
		forceParse: true,
        showMeridian: 1
	});
});
</script>
<body style='overflow:scroll;overflow-x:hidden'>
	<div class="container" style="width:98%;padding:8px;">
		<div class="row">
			<div class="panel panel-default">
				<div class="panel-heading">
					<c:choose>
						<c:when test="${empty  projectitem.id}">新增</c:when>
				 		<c:otherwise>修改</c:otherwise>
	  				</c:choose>
				</div>
					<div class="panel-body">
						<form class="form-horizontal" role="form" id="dailogForm" action="<%=path%>/web/projectitem/doMerge.do" method="POST">
								<input type="hidden" value="${projectitem.id}" name="id" />
							<div class="form-group">
						    	<label for="presale" class="col-sm-2 control-label" style="text-align:left;">预售证号</label>
						    	<div class="col-sm-8">
								      <input type="text" value="${projectitem.presale}" name="presale" id="presale" class="form-control"/>
						    	</div>
							</div>
							<div class="form-group">
						    	<label for="projectname" class="col-sm-2 control-label" style="text-align:left;">项目名称</label>
						    	<div class="col-sm-8">
								      <input type="text" value="${projectitem.projectname}" name="projectname" id="projectname" class="form-control"/>
						    	</div>
							</div>
							<div class="form-group">
						    	<label for="developcom" class="col-sm-2 control-label" style="text-align:left;">开发企业</label>
						    	<div class="col-sm-8">
								      <input type="text" value="${projectitem.developcom}" name="developcom" id="developcom" class="form-control"/>
						    	</div>
							</div>
							<div class="form-group">
						    	<label for="locationarea" class="col-sm-2 control-label" style="text-align:left;">所在区</label>
						    	<div class="col-sm-8">
								      <input type="text" value="${projectitem.locationarea}" name="locationarea" id="locationarea" class="form-control"/>
						    	</div>
							</div>
							<div class="form-group">
								<div class="col-sm-offset-5 col-sm-10">
									<a type="button" class="btn btn-sm btn-default" id="formReturn" href="<%=path%>/web/projectitem/queryPageList.do">返回</a>
   									<button type="button" class="btn btn-sm btn-primary" id="formSubmit" onclick ="javascript:$('#dailogForm').submit();">提交</button>
								</div>
 							</div>
						</form>
				</div>
			</div>
		</div>
	</div>
</body>
</html>